package com.dc.chat.app.biz;

import com.dc.chat.entity.to.ResponseBean;
import com.dc.chat.entity.to.user.GetInfoResp;
import com.dc.chat.entity.to.user.SearchUserResp;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface UserBiz {
    /*
    账号注册
     */
    ResponseBean<Integer> register(String username, String password);

    ResponseBean<String> login(String username, String password);

    ResponseBean<GetInfoResp> getInfo();

    ResponseBean<SearchUserResp> searchUser(String username);

    ResponseBean editNickname(String nickname);

    ResponseBean changeAvatar(MultipartFile file) throws IOException;
}
